Fix and improve define-key based replacements
authorJustin Burkett <justin@burkett.cc>
Mon, 18 Dec 2017 03:16:24 +0000 (22:16 -0500)
committerJustin Burkett <justin@burkett.cc>
Mon, 18 Dec 2017 03:16:24 +0000 (22:16 -0500)
commitef384e781e6107850c7fadc78cb0675d7fe72e69
tree70c00b6dde5279de130a7fddf1b1e6eecad26278
parentc7e5f766d131cf760f181bdda780bcd63cf765cc
Fix and improve define-key based replacements

Check for equality of definition as well as the key sequence. Unless it's a
prefix binding, in which case only check the key sequence.

Make sure we apply kbd when looking up pseudo bindings.

Move the logic into which-key--get-pseudo-binding.
which-key.el